import globalComponent from '@components/index'
import router from '@router/index.ts'
import ElementPlus from 'element-plus'
import zhCn from 'element-plus/es/locale/lang/zh-cn'
import { createApp } from 'vue'
import App from './App.vue'
// 引入svg注册脚本
import 'virtual:svg-icons-register'
// 引入全局样式
import '@/styles/index.scss'
import 'element-plus/dist/index.css'
// 引入状态管理仓库
import pinia from '@/store/index.ts'

const app = createApp(App)

// 使用Element Plus
app.use(ElementPlus, {
  locale: zhCn,
})

//安装自定义插件
app.use(globalComponent)
app.use(pinia)
app.use(router)
app.mount('#app')
